body {
    background-color: #1a1a1a;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    text-align: center;
    overflow: hidden;
}

#game-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

h1 {
    font-family: "Comic Sans MS", cursive, sans-serif;
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 40px;
}

button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    min-width: 150px;
}

button:hover {
    background-color: #357abd;
}

button:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
}

#admin-btn {
    background-color: #e2a04a;
}
#admin-btn:hover {
    background-color: #bd853c;
}

#exit-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.yes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.epilepsy-warning {
    color: yellow;
    font-size: 0.8rem;
    margin-top: 5px;
    cursor: pointer;
    text-decoration: underline;
}

.epilepsy-warning:hover {
    color: orange;
}

.hidden {
    display: none !important;
}

#exit-screen, #quit-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#quit-message p {
    color: red;
    font-size: 3rem;
    font-weight: bold;
}

.flashing {
    animation: flash 0.2s infinite;
}

@keyframes flash {
    0%, 100% { background-color: red; }
    50% { background-color: white; }
}

/* Warning Modal Styles */
#warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

#warning-content {
    background-color: #2c2c2c;
    padding: 20px 30px;
    border: 2px solid #4a90e2;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    height: 70%;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
}

#warning-content h2 {
    margin-top: 0;
    color: #4a90e2;
    text-align: center;
    border-bottom: 1px solid #555;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

#close-warning-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    min-width: auto;
    line-height: 1;
    transition: color 0.2s;
}

#close-warning-btn:hover {
    color: #ff5555;
    background: none;
}

#warning-list {
    overflow-y: scroll;
    flex-grow: 1;
    padding-right: 15px;
    text-align: center;
}

#warning-list p {
    margin: 8px 0;
    color: #ddd;
    font-size: 1.1rem;
}

/* Custom Scrollbar for Webkit Browsers */
#warning-list::-webkit-scrollbar {
    width: 10px;
}

#warning-list::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 5px;
}

#warning-list::-webkit-scrollbar-thumb {
    background: #4a90e2;
    border-radius: 5px;
}

#warning-list::-webkit-scrollbar-thumb:hover {
    background: #357abd;
}

/* Confirmation Modal Styles */
#confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
}

#confirm-content {
    background-color: #1e1e1e;
    padding: 30px 40px;
    border: 2px solid #ff5555;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 25px rgba(255, 85, 85, 0.5);
}

#confirm-question {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #eee;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

#confirm-no-btn {
    background-color: #666;
}

#confirm-no-btn:hover {
    background-color: #555;
}

/* Admin View Styles */
#admin-view {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#server-setup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background-color: #2c2c2c;
    border-radius: 10px;
}

#server-setup h2 {
    color: #4a90e2;
    margin-top: 0;
}

#topic-input {
    padding: 10px;
    font-size: 1.1rem;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #1e1e1e;
    color: white;
    width: 300px;
    text-align: center;
}

#call-interface {
    width: 90%;
    max-width: 800px;
    height: 90%;
    background-color: #252525;
    border: 2px solid #4a90e2;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}

#call-header {
    padding: 15px 25px;
    background-color: #2c2c2c;
    border-bottom: 2px solid #4a90e2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#call-header h3 {
    margin: 0;
    color: #eee;
}

#call-header p {
    margin: 0;
    font-size: 1.1rem;
    color: #ccc;
}

#participant-list-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

#participant-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#participant-list li {
    background-color: #333;
    color: #f0f0f0;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participant-actions {
    display: flex;
    gap: 10px;
}

.participant-btn {
    padding: 5px 10px;
    font-size: 0.9rem;
    min-width: 60px;
    margin: 0;
}
.participant-btn.kick {
    background-color: #e2a04a;
}
.participant-btn.kick:hover {
    background-color: #bd853c;
}
.participant-btn.ban {
    background-color: #ff5555;
}
.participant-btn.ban:hover {
    background-color: #cc4444;
}

#admin-controls {
    background-color: #2c2c2c;
    padding: 15px;
    border-top: 2px solid #4a90e2;
}

#command-input-container {
    display: flex;
    gap: 10px;
}

#command-input {
    flex-grow: 1;
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #1e1e1e;
    color: white;
}

#run-command-btn {
    min-width: 80px;
}

#command-output {
    min-height: 24px;
    margin-top: 10px;
    font-style: italic;
    transition: color 0.3s;
}

.command-output-info {
    color: #4a90e2;
}

.command-output-error {
    color: #ff5555;
}

.command-output-join {
    color: #55ff55;
}

.command-output-leave {
    color: #aaaaaa;
}